package gt.edu.usac.viewcontroller.backing.app;

import java.io.IOException;

import javax.faces.component.html.HtmlForm;

import javax.faces.context.FacesContext;

import oracle.adf.view.faces.component.core.layout.CorePanelHeader;
import oracle.adf.view.faces.component.core.layout.CorePanelList;
import oracle.adf.view.faces.component.core.nav.CoreCommandLink;

import oracle.binding.BindingContainer;

public class Estadisticas {
    private HtmlForm form1;
    private CorePanelHeader panelHeader1;
    private CorePanelHeader panelHeader2;
    private CorePanelHeader panelHeader3;
    private CorePanelList panelList1;
    private CoreCommandLink commandLink1;
    private CoreCommandLink commandLink2;
    private CorePanelList panelList2;
    private CorePanelList panelList3;
    private CoreCommandLink commandLink3;
    private CoreCommandLink commandLink4;
    private CoreCommandLink commandLink5;
    private BindingContainer bindings;

    public void setForm1(HtmlForm form1) {
        this.form1 = form1;
    }

    public HtmlForm getForm1() {
        return form1;
    }

    public void setPanelHeader1(CorePanelHeader panelHeader1) {
        this.panelHeader1 = panelHeader1;
    }

    public CorePanelHeader getPanelHeader1() {
        return panelHeader1;
    }

    public void setPanelHeader2(CorePanelHeader panelHeader2) {
        this.panelHeader2 = panelHeader2;
    }

    public CorePanelHeader getPanelHeader2() {
        return panelHeader2;
    }

    public void setPanelHeader3(CorePanelHeader panelHeader3) {
        this.panelHeader3 = panelHeader3;
    }

    public CorePanelHeader getPanelHeader3() {
        return panelHeader3;
    }


    public void setPanelList1(CorePanelList panelList1) {
        this.panelList1 = panelList1;
    }

    public CorePanelList getPanelList1() {
        return panelList1;
    }

    public void setCommandLink1(CoreCommandLink commandLink1) {
        this.commandLink1 = commandLink1;
    }

    public CoreCommandLink getCommandLink1() {
        return commandLink1;
    }

    public void setCommandLink2(CoreCommandLink commandLink2) {
        this.commandLink2 = commandLink2;
    }

    public CoreCommandLink getCommandLink2() {
        return commandLink2;
    }

    public void setPanelList2(CorePanelList panelList2) {
        this.panelList2 = panelList2;
    }

    public CorePanelList getPanelList2() {
        return panelList2;
    }

    public void setPanelList3(CorePanelList panelList3) {
        this.panelList3 = panelList3;
    }

    public CorePanelList getPanelList3() {
        return panelList3;
    }

    public void setCommandLink3(CoreCommandLink commandLink3) {
        this.commandLink3 = commandLink3;
    }

    public CoreCommandLink getCommandLink3() {
        return commandLink3;
    }

    public void setCommandLink4(CoreCommandLink commandLink4) {
        this.commandLink4 = commandLink4;
    }

    public CoreCommandLink getCommandLink4() {
        return commandLink4;
    }


    public void setCommandLink5(CoreCommandLink commandLink5) {
        this.commandLink5 = commandLink5;
    }

    public CoreCommandLink getCommandLink5() {
        return commandLink5;
    }

    public String esperada_action() {
        try {
            FacesContext.getCurrentInstance().getExternalContext().redirect("/viewcontroller/printcoordinacion?reporte=esperados");
        } catch (IOException e) {
            // TODO
        }
        return null;
    }

    public void setBindings(BindingContainer bindings) {
        this.bindings = bindings;
    }

    public BindingContainer getBindings() {
        return bindings;
    }

    public String alumnosprof_action() {
        
        return "ixp";
    }


    public String horarios_action() {
         try {
             FacesContext.getCurrentInstance().getExternalContext().redirect("/viewcontroller/printprofalumno?reporte=horario");
         } catch (IOException e) {
             // TODO
         }
        return null;
    }
}
